f=open('g:/test.txt','w')
for line in open("g:/aa.txt"):
    str_split = line.split(';')
    print range(len(str_split))
    for eachLetter in str_split:
        print eachLetter
        f.write(eachLetter)
        f.write("\n")
f.close()